
'use strict';

const request = require('../../request').request,
    md5 = require('../../request').md5,
    expect = require('chai').expect;


module.exports = {
    login: function login(callback) {
        request({ method: 'post', url: "/Department/UserLogin" })
            .send({
                username: "fanchangwang@258.com",
                password: md5('123456'),
                device_id: md5(process.execPath + "-" + new Date().getTime() + "-" + Math.random())
            })
            .end(function(e, res) {
                callback(e, res && res.body)
            })
    }
}